<?php 
	 session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<title>旅游信息管理</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/dialog.css" rel="stylesheet" type="text/css" />

</head>

<body >
<!-- flash幻灯片-->
<div align="center">
<div style="height: 382px; width:792px; " align="center" >
		     
			<div id="featured">
			<?php
			
			
				//加载配置文件
				include 'config.php';
				$link = mysql_connect(HOST,DBUSER,DBPASS) or die('连接失败亲');
				mysql_select_db(DBNAME,$link);
				mysql_set_charset('utf8');
				$sql = "SELECT * FROM t_flash";
				$result = mysql_query($sql);
				$count = 1;
				if(!empty($result)&&mysql_num_rows($result)>0){
					while($rows = mysql_fetch_assoc($result)){
					
						echo '<a class="orbit-item" href="travelDetailed?id='.$rows['srcId'].'" data-caption="#htmlCaption'.$count.'"><img src="../uploadImg/'.$rows['src'].'" alt="img1" width="792" height="382"></a>';
						$count++;
					}
				}
				
				if(!empty($result)){
					mysql_free_result($result);					

					}else{
				}
			?>
			</div>
			<?php
				$count = 1;
				$sql = "SELECT * FROM t_flash";
				$result = mysql_query($sql);
				if(!empty($result)&&mysql_num_rows($result)>0){
					while($rows = mysql_fetch_assoc($result)){
					
						echo '<span class="orbit-caption" id="htmlCaption'.$count.'">'.$rows['srcTitle'].'</span>';
						$count++;
					}
				}
				if(!empty($result)){
					mysql_free_result($result);					

					}else{
				}
				mysql_close($link);
			?>
		</div>
		</div>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript" src="js/jquery.XYTipsWindow.min.2.8.js"></script>
<script type="text/javascript" src="js/jquery.orbit.min.js"></script>
</body>
</html>